VDSetKeyColorRange
Some video digitizer components that support key colors may allow applications to set a range of key color values. The key color range is expressed as a range of RGB color values. TheVDSetKeyColorRange
function allows your application to define a key color range.
pascal VideoDigitizerError VDSetKeyColorRange (VideoDigitizerComponent ci, RGBColor *minRGB, RGBColor *maxRGB);
ci
- Specifies the video digitizer component for the request. Applications obtain this reference from the Component Manager's
OpenComponent
function.minRGB
- Contains a pointer to a field that contains the lower bound of the key color range. All colors in the color table between the color specified by the
minRGB
parameter and the color specified by themaxRGB
parameter are considered key colors.maxRGB
- Contains a pointer to a field that contains the upper bound of the key color range. All colors in the color table between the color specified by the
minRGB
parameter and the color specified by themaxRGB
parameter are considered key colors.DESCRIPTION
If the digitizer component cannot accommodate all the colors that are defined in the specified range, it returns a result value ofnoMoreKeyColors
.RESULT CODES
noErr 0 No error digiUnimpErr -2201 Function not supported noMoreKeyColors -2205 Key color list is full SEE ALSO
Your application can obtain the current key color range by calling theVDGetKeyColorRange
function, which is described on page 8-85.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help